const express = require('express')

const app = express()

app.use(require('cors')())//跨域
app.use(express.json())//为了使用req.body&async await
//引入并且传入app
require('./routes/admin/index')(app)
require('./plugins/db.js')(app)


app.listen(3000,()=>{
    console.log('port:3000')
})